<?php !defined('ACCESSING') && die('Hacking attempt');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理說明</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../public/style/admin.css" type="text/css" rel="stylesheet" />
<script src="../public/js/j.js" type="text/javascript"></script>
<script src="../public/js/comment.func.js" type="text/javascript"></script>
</head>

<body>
<?php
include_once("../public/editor/fckeditor.php");
?>
<div id="userlist">
    <div class="header">
        <span onclick="selectAll()">Select All</span> &nbsp; &nbsp; &nbsp;
        <span onclick="conversely()">Conversely</span> &nbsp; &nbsp; &nbsp;
        <span onclick="refresh_user_list()">Refresh List</span> &nbsp; &nbsp; &nbsp;
        <span onclick="closealert()">Close</span>
    </div>
    <dir class="con"></dir>
    <div class="footer"><input type="button" id="enter" name="enter" value=" 確 定 " onclick="confirm()" /></div>
</div>
<div align="center" style="margin-top:50px">
<form id="changepassform" method="POST" action="?action=sendmail">
	<table width="80%" cellspacing="0" cellpadding="0" id="table1" height="28" border="1" bordercolor="#336699" style="border-collapse: collapse">
		<tr>
			<td bordercolor="#FFFFFF" bgcolor="#E8F1FF" height="26">
			<p align="center">會員寄信</p></td>
		</tr>
	</table>
	<table width="80%" cellspacing="1" cellpadding="3" id="table2" height="227" border="1" bordercolor="#336699">
		<tr>
			<td bordercolor="#FFFFFF" bgcolor="#E8F1FF" height="223" align="center" valign="top">
			<table border="1" width="100%" cellspacing="0" cellpadding="2" id="table3" height="415" bordercolor="#336699" style="border-collapse: collapse">
                <tr>
					<td bgcolor="#E8F1FF" align="right" width='10%'>
					<font size="2">收 信 人：</font></td>
					<td class="tab_tds" style="text-align:left" width='90%' style="border-bottom:1px #336699 solid">
                        <div id="to" style="height:auto;width:100%; overflow: auto; line-height: 25px; cursor: pointer;word-break:break-all;word-wrap:break-word" onclick="showuserlist()">點擊此處選擇收信人</div>
                        <textarea id="mailto" name="mailto" style="display: none"></textarea>
					</td>
				</tr>
                <tr>
					<td bgcolor="#E8F1FF" align="right" width='10%'>
					<font size="2">寄信主題：</font></td>
					<td class="tab_tds" style="text-align:left" width='90%'>
					<input name="subject" type="text" id="subject" class="inputtext" maxlength="150" style="width:400px" />
					<span id="titError" class="red">*</span></td>
				</tr>
                <tr>
                    <td bgcolor="#E8F1FF" align="right">寄信內容：</td>
					<td bgcolor="#FFFFFF" align="left" valign="top">
<?php
					$sBasePath = "/public/editor/" ;
					$oFCKeditor = new FCKeditor('content') ;
                    $oFCKeditor->ToolbarSet = 'Concise';
                    $oFCKeditor->Height = '300';
					$oFCKeditor->BasePath = $sBasePath ;
					if ( isset($_GET['Toolbar']) )
						$oFCKeditor->ToolbarSet = preg_replace("/[^a-z]/i", "", $_GET['Toolbar']);
					$oFCKeditor->Value = "";
					$oFCKeditor->Create() ;
?>
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2" height="43">
					<input type="hidden" id="aid" name="aid" value="<?php echo $assArray[0];?>">
                        <input type="submit" value="確 定 送 出" name="B1" id="B1" onclick="return verification_check('sendmail')" /></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</form>
</body>
</html>